﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HolidayDataAccessLayer;
namespace HolidayWeb
{
    public partial class ViewDetails : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = int.Parse(Request.QueryString["DestinationId"]);
            HolidayDataAccess dataAccess = new HolidayDataAccess();
            var dest = dataAccess.GetDestination(id);
            TourDetailsView.DataSource = dest;
            TourDetailsView.DataBind();
        }
    }
}